package com.ruoyi.supermarket.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.math.BigDecimal;

/**
 * 应付详情对象 tb_xqyfpay
 * 
 * @author ruoyi
 * @date 2024-05-30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Xqyfpay
{
    private static final long serialVersionUID = 1L;

    /** 编号id */
    private Long xqyfpayId;

    /** 汇总id */
    @Excel(name = "汇总id")
    private Long yspayId;

    /** 采购详情单id */
    @Excel(name = "采购详情单id")
    private Long pId;

    //----------追加属性
    private String purchaseCode;
    private Long sum;
    private BigDecimal price;
    private BigDecimal zprice;
    private String productCode;
    private String productName;
    private String unit;

    public void setXqyfpayId(Long xqyfpayId) 
    {
        this.xqyfpayId = xqyfpayId;
    }

    public Long getXqyfpayId() 
    {
        return xqyfpayId;
    }
    public void setYspayId(Long yspayId) 
    {
        this.yspayId = yspayId;
    }

    public Long getYspayId() 
    {
        return yspayId;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("xqyfpayId", getXqyfpayId())
            .append("yspayId", getYspayId())
            .append("pId", getpId())
            .toString();
    }
}
